notebook: No need to recompute remaining space
authorBenjamin Otte <otte@redhat.com>
Thu, 7 Jan 2016 11:21:25 +0000 (12:21 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 11 Jan 2016 16:05:24 +0000 (17:05 +0100)
The value is correct.

In particular, subtracting width on notebooks with tabs on left/right is
a very bad idea.

gtk/gtknotebook.c

index 89f9a3c375fa4772c60c6aeca95daeef1869c3d2..13592d11cac5f0c8bef9d8bcccca549fc615f2f4 100644 (file)
@@ -5525,7 +5525,6 @@ gtk_notebook_calculate_shown_tabs (GtkNotebook          *notebook,
           *last_child = gtk_notebook_search_page (notebook, priv->focus_tab,
                                                   STEP_NEXT, TRUE);
           page = priv->first_tab->data;
-          *remaining_space = tab_space - page->requisition.width;
           *n = 1;
         }
       else